<template>
	<view class="page-my">
		<cl-list justify="start" :border="false">
			<view class="info">
				<cl-avatar
					:size="120"
					src="https://cool-comm.oss-cn-shenzhen.aliyuncs.com/show/imgs/chat/avatar/5.jpg"
				></cl-avatar>

				<view class="content">
					<text class="name">海上霸主</text>
					<text class="id">酷聊ID：1760402</text>
				</view>
			</view>

			<text slot="suffix" class="cl-icon-arrow-right"></text>
		</cl-list>

		<view class="vip">
			<view class="content">
				<text class="level">黄金</text>
				<text class="tips">您的会员将在10天后过期</text>
			</view>
			<button class="renew-btn" size="mini">立即续费</button>
		</view>

		<cl-list label="钱包">
			<image slot="icon" src="@/static/icon/wallet.png" alt />
			<text slot="suffix" class="cl-icon-arrow-right"></text>
		</cl-list>

		<cl-list label="收藏">
			<image slot="icon" src="@/static/icon/collection.png" alt />
			<text slot="suffix" class="cl-icon-arrow-right"></text>
		</cl-list>

		<cl-list label="隐私">
			<image slot="icon" src="@/static/icon/privacy.png" alt />
			<text slot="suffix" class="cl-icon-arrow-right"></text>
		</cl-list>

		<cl-list label="设置">
			<image slot="icon" src="@/static/icon/set.png" alt />
			<text slot="suffix" class="cl-icon-arrow-right"></text>
		</cl-list>

		<cl-list label="联系客服">
			<image slot="icon" src="@/static/icon/customer-service.png" alt />
			<text>9:30-18:00</text>
			<text slot="suffix" class="cl-icon-arrow-right"></text>
		</cl-list>
	</view>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.page-my {
	.info {
		display: flex;
		align-items: center;
		margin: 30rpx 0;

		.content {
			display: flex;
			flex-direction: column;
			margin-left: 30rpx;

			.name {
				font-size: 34rpx;
				margin-bottom: 10rpx;
			}

			.id {
				font-size: 24rpx;
			}
		}
	}

	.vip {
		display: flex;
		align-items: center;
		background-color: #000;
		margin: 20rpx 20rpx 50rpx 20rpx;
		padding: 40rpx 30rpx;
		border-radius: 16rpx;

		.content {
			display: flex;
			flex-direction: column;
			flex: 1;
			color: #fff;

			.level {
				font-size: 30rpx;
				margin-bottom: 10rpx;
			}

			.tips {
				color: #ccc;
				font-size: 24rpx;
			}
		}

		.renew-btn {
			display: inline-block;
			background-color: #ffc100;
			color: #222222;
			border-radius: 60rpx;
			font-size: 26rpx;

			&::after {
				border: 0;
			}
		}
	}

	.cl-list {
		margin: 0 20rpx;
	}
}
</style>